<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <!--头部固定引用-->
    <meta charset="utf-8">
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/icon-font.css"/><!--图标-->
    <!--固定引用结束,自定义引用添加在下面-->
    <title>关于我们</title>
    <!--页面样式添加在这里，多看看base.css里面的公共样式，大部分常用的都有，避免使用独立css文件为单独页面设置样式，避免随意添加样式到公共样式-->
    <style>
        .user-version-logo {
            margin-top: 0.74rem;
            text-align: center;
            width: 1.28rem;
            height: 1.28rem;
            /*margin-left: 3.1rem;*/
        }

        .user-version-logo img {
            width: 1.28rem;
            height: 1.28rem;
        }

        .user-version-topic {
            margin-top: 0.1rem;
        }

        .user-version-num {
            margin-top: 0.04rem;
        }

        .user-version-line {
            background: #f6f6f6;
            height: 0.16rem;
            margin-top: 0.84rem;
        }

        .user-version-module {
            padding: 0.36rem 0 0.34rem 0;
            border-bottom: 1px solid #F2F2F2;
        }

        .user-version-goImg {
            color: #999999;
            opacity: 0.6;
        }

        .user-version-word {
            color: rgba(34, 34, 34, 1);
        }

        .user-version-blueWord {
            color: rgba(44, 104, 255, 1);
            margin-right: 0.2rem;
        }

        .user-version-info {
            padding: 0 0.32rem;
        }
    </style>
</head>
<!--尽量不要在body上添加样式，除了背景色-->
<body>
<div class="flex-column ff400 fs14 bg-white">
    <!--状态栏-->
    <div class="bg-main status-bar"></div>
    <!--导航栏-->
    <div class="bg-main nav-bar flex-row justify-content-between c-white align-items-center">
        <div class="left-bar" onclick="clickBack()">
            <span class="iconfont iconfanhui1 fs16"></span>
        </div>
        <div class="flex-row center-bar fs16 ff500">关于我们</div>
        <div class="right-bar">
        </div>
    </div>

    <!--logo与现有版本-->
    <div class="flex-column justify-content-between align-items-center ">
        <div class="user-version-logo"><img src="../../images/user/version-logo.png"></div>
        <div class="user-version-topic fs17">JT²智管有方</div>
        <div class="user-version-num  fs12 "></div>
    </div>

    <!--分隔线-->
    <div class="user-version-line"></div>

    <!--功能模块-->
    <div class="flex-column">
        <div class="user-version-info">
            <!--功能介绍模块-->
            <div class="user-version-module flex-row align-items-center justify-content-between">
                <!--            <div class="user-version-module flex-row align-items-center justify-content-between" onclick="goIntroduction()">-->
                <div class="user-version-word fs15">功能介绍</div>
                <!--                <span class="user-version-goImg iconfont iconfanhui fs9"></span>-->
                <span class="user-version-goImg  fs12">敬请期待</span>
            </div>
            <!--隐私条款-->
            <div class="user-version-module flex-row align-items-center justify-content-between"
                 onclick="goPrivacyAgreement()">
                <div class="user-version-word fs15">隐私条款</div>
                <span class="user-version-goImg iconfont iconfanhui fs9"></span>
            </div>
            <!--去评分模块-->
            <div class="user-version-module flex-row align-items-center justify-content-between">
                <!--            <div class="user-version-module flex-row align-items-center justify-content-between" onclick="goRate()">-->
                <div class="user-version-word fs15">去评分</div>
                <!--                <span class="user-version-goImg iconfont iconfanhui fs9"></span>-->
                <span class="user-version-goImg fs12">敬请期待</span>
            </div>
            <!--更新动态模块-->
            <div class="user-version-module flex-row align-items-center justify-content-between">
                <!--            <div class="user-version-module flex-row align-items-center justify-content-between" onclick="goVersionHis()">-->
                <div class="user-version-word fs15">更新动态</div>
                <!--                <span class="user-version-goImg iconfont iconfanhui fs9"></span>-->
                <span class="user-version-goImg  fs12">敬请期待</span>
            </div>
            <!--版本更新模块-->
            <div class="user-version-module flex-row align-items-center justify-content-between">
                <div class="user-version-word fs15">版本更新</div>
                <div class="flex-row align-items-center">
                    <div class="user-version-blueALoogo flex-row align-items-center"></div>
                    <!--                    <div class="user-version-blueWord fs13"></div>-->
                    <!--                    <span class="user-version-goImg iconfont iconfanhui fs9"></span>-->
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<!--下面四个文件为固定引用，自己根据情况调整路径，不要跟换引入顺序，其他引用添加在后面-->
<script src="../../js/dict.js"></script>
<script src="../../js/jquery-3.4.1.min.js"></script>
<script src="../../js/checkJsBridge.js"></script>
<script src="../../js/utils.js"></script>
<script src="../../js/api.js"></script>
<!--固定引用结束-->
<!--避免一个页面包含过多功能，减少js重绘页面，推荐分功能，分页面-->
<script>
    let pm = {
      versionNow: '',
      //当前最新版本号
      maxVersionNum: ''
    }

    /*固定页面初始化方法，用于替代$(function(){}),param为url参数，Object类型*/
    function initPage() {
      //状态栏自适应
      Utils.sbhAdaptive()

      getVersionNow()
      getMaxVersionNum()
    }

    /*页面所在窗口由后台前台时触发的方法,param为url参数，Object类型*/
    function startPage(params) {

    }

    function reLoadPage() {
      getVersionNow()
      getMaxVersionNum()
    }

    //跳转到更新动态界面
    function goVersionHis() {
      jsBridge.openWindow('html/user/version-history.html', {}, {noBar: false})
    }

    //获取当前版本
    function getVersionNow() {
      pm.versionNow = systemConfig.version
      $('.user-version-num').html('Version' + pm.versionNow)
    }

    //功能介绍
    function goIntroduction() {
      jsBridge.openWindow('https://jt2.jddglobal.com/introduction', {}, {noBar: true})
    }

    //隐私协议
    function goPrivacyAgreement() {
      jsBridge.openWindow('html/user/privacy-agreement.html', {}, {noBar: true})
    }

    //获取当前最新版本号,并写入user-version-blueWord
    function getMaxVersionNum() {
      let blueWord = ''
      Server.version.getMaxVersionNum({
        nowVersion: pm.versionNow
      }).then(
        function (data) {
          pm.maxVersionNum = data.maxVersionNum
          if (data.state < 0) {
            blueWord += '<div class="user-version-blueWord fs13"  onclick="goUpdateVersion()">' + '最新 V' + pm.maxVersionNum + '</div>'
            blueWord += '<span class="user-version-goImg iconfont iconfanhui fs9"></span>'
          } else {
            blueWord += '<div class="user-version-blueWord fs13">' + '已是最新版本' + '</div>'
          }
          $('.user-version-blueALoogo').html(blueWord)
        }
      ).catch(jsBridge.log)
    }

    function goUpdateVersion() {
      jsBridge.openWindow('http://www.jd.com')
    }

    function goRate() {
      jsBridge.openWindow('http://www.jd.com')
    }
</script>
</html>
